<?php

class Application_Form_Login extends Zend_Form
{
	// form for login, contains input for email and password 
    public function init()
    {
        //Create text elements
		$emailElement = new Zend_Form_Element_Text("txt_email");
		$emailElement->setLabel("Email: ");
		$emailElement->addValidator(new Zend_Validate_EmailAddress());
		$emailElement->setRequired(true);
		
		//Create password element
		$passwordElement = new Zend_Form_Element_Password("txt_password");
		$passwordElement->setLabel("Password: ");
		$passwordElement->setRequired(true);
		
		//Create the submit button
		$submitButtonElement = new Zend_Form_Element_Submit("btn_LogIn");
		$submitButtonElement->setLabel("Sign In");
		
		$this->addElements(array($emailElement, $passwordElement, $submitButtonElement));
    }


}

